package com.crl.core.animation
{
	public class Anim
	{
		
		/**
		 * String name of the animation (e.g. "walk")
		 */
		public var name:String;
		/**
		 * Seconds between frames (basically the framerate)
		 */
		public var delay:Number;
		/**
		 * A list of frames stored as <code>uint</code> objects
		 */
		public var frames:Array;
		/**
		 * Whether or not the animation is looped
		 */
		public var looped:Boolean;
		
		
		public function Anim(name:String, frames:Array, delay:Number=0, looped:Boolean=true)
		{
			this.name = name;
			
			if(delay > 0){
				this.delay =delay;
			}else{
				this.delay = 0;
			}
			this.frames = frames;
			this.looped = looped;
		}
	}
}